<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <!-- 学号 -->
    <div class="layui-form-item">
        <label class="layui-form-label required">学号</label>
        <div class="layui-input-block">
            <input type="number" name="userid" value="201920010910" class="layui-input" disabled>
        </div>
    </div>
    <!-- 姓名 -->
    <div class="layui-form-item">
        <label class="layui-form-label required">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="name"  value="张三" class="layui-input" disabled>
        </div>
    </div>
    <!-- 获奖 -->
    <div class="layui-form-item">
        <label class="layui-form-label">获奖</label>
        <div class="layui-input-block">
            <select name="interest" lay-filter="role">
                <option value=""></option>
                <option value="1">特等奖</option>
                <option value="1">一等奖</option>
                <option value="2">二等奖</option>
                <option value="3" >三等奖</option>
                <option value="3">四等奖</option>
                <option value="3" selected>无</option>
            </select>
        </div>
    </div>
    <!-- 组员-->
    <div class="layui-form-item">
        <label class="layui-form-label required">组员</label>
        <div class="layui-input-block">
            <input type="text" name="realname"  value="李四，王五" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
<script src="../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form','laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            laydate = layui.laydate
        $ = layui.$;


        //监听重置密码
        form.on('submit(resetPwd)', function (data) {
            console.log(data)
            console.log(data.field)
            console.log(data.field.password )

            return false;
        });

    });
</script>
</body>
</html>